package com.sheep.classroompie.repository;


import com.sheep.classroompie.entity.Course;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface CourseRepository {
  // 查询学生选择的课程
  public List<Course> querySelectedCourse(Integer stuId);
  //根据课程码选出课程
  public Course selectCourseById(String courseId);
  //创建课程
  public Boolean addCourse(Course course);
  //查询老师教的课程
  public List<Course> queryTaughtCourse(Integer teacherId);
  //删除课程
  public boolean deleteCourse(String courseId);
  //加入课程
  public boolean joinCourse(Integer stuId,String courseId);
  //更新课堂人数
  public void updateCourseMembersCount(String courseId);
  //查询选了课的学生的Id
  public List<String> selectStudentIdByCourseId(String courseId);
}
